package com.java.grammer.oop;

/**
 * @author luzhikun
 * @date 2020/11/29- 9:10
 */
public class DogTest {
    public static void main(String[] args) {

        Dog p1 = new Dog();
        p1.setColor("黄色");
        p1.setAge(10);
        p1.setName("大黄");
        String name = p1.getName();
        int age = p1.getAge();
        String color = p1.getColor();
        System.out.println("这只狗的名字叫" + name + " 年龄：" + age + "  颜色为：" + color);

    }
}
